<local:DocumentBase x:Class="WPFExcelReport.TYTWHAB55"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"  
                    xmlns:VA="clr-namespace:WPFExcelReport;assembly=TVAART"
                    xmlns:VF="clr-namespace:WPFExcelReport;assembly=TVAFARBEN"
                    xmlns:GD="clr-namespace:WPFExcelReport;assembly=TGAAUF" 
                    xmlns:VKK="clr-namespace:WPFExcelReport;assembly=TVKKOPF" 
                    xmlns:VKP="clr-namespace:WPFExcelReport;assembly=TVKPOS" 
                    xmlns:WD="clr-namespace:WPFExcelReport;assembly=TWDECK" 
                    xmlns:WB="clr-namespace:WPFExcelReport;assembly=TWBDAT" 
                    xmlns:WBB="clr-namespace:WPFExcelReport;assembly=TWBBST" 
                    xmlns:AB="clr-namespace:WPFExcelReport;assembly=TABPOS" 
                    xmlns:WS="clr-namespace:WPFExcelReport;assembly=TWASTAMM"  
                    xmlns:AF="clr-namespace:WPFExcelReport;assembly=TABFOLGE" 
                    xmlns:AE="clr-namespace:WPFExcelReport;assembly=TABARTE" 
                    xmlns:BB="clr-namespace:WPFExcelReport;assembly=TBABST" 
                    xmlns:GB="clr-namespace:WPFExcelReport;assembly=TGLLG" 
                      xmlns:BD="clr-namespace:WPFExcelReport;assembly=TBAAUF"
                     xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"                    
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
                     xmlns:MAH="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
                     xmlns:me="clr-namespace:WPFExcelReport"
                    Name="TV"
                    MinHeight="200"
                    MinWidth="200"
                   Loaded="Window_Loaded"
>
    <local:DocumentBase.Resources>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:NOTConverter x:Key="not"/>
    </local:DocumentBase.Resources>
    <Grid>
        <Grid.RowDefinitions> 
            <RowDefinition   Height="1*" />
            <RowDefinition   Height="1*" /> 
        </Grid.RowDefinitions>
        <Grid Grid.Row="0"> 
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Grid Grid.Column="0"> 
                <Border BorderBrush="DarkGray" BorderThickness=".0,.0,2,2" CornerRadius="11">
                    <Border BorderBrush="Black" BorderThickness="1.5" CornerRadius="8"> 
                        <WD:TRWD02    
                           Name="cWD02"  
                           AUFART="V"
                           ARTST="R"   
                           IsShowAB="{Binding IsShowAB,ElementName=cAB55}"  
                           IsVV="False"/> 
                    </Border>
                </Border> 
            </Grid>
            <Grid Grid.Column="1">
                <Grid.RowDefinitions>
                    <RowDefinition   Height="Auto" />
                    <RowDefinition   Height="Auto" />
                    <RowDefinition   Height="1*" />
                </Grid.RowDefinitions>
                <WrapPanel  Grid.Row="0"   >
                    <TextBlock Text="织造计划单"/>
                    <WD:TWDI2PR dwWD="{Binding dwWD,ElementName=cDI}"/>
                </WrapPanel>
                <WD:TDIWD02 Grid.Row="1"  
                       Name="cDI"
                         AUFART="V"
                         ABKAUFART="DI"
                         ARTST="R" 
                         WZTYP="{Binding WZTYP,ElementName=cWD02}"                     
                         EXAUF="{Binding PRART,ElementName=cWD02}" />
                <WrapPanel Grid.Row="2" >
                    <TextBlock Text="织造单"/>
                    <WD:TZPRWD02  Margin="0,10,0,0"
                         AUFART="V"
                         ARTST="R"  
                         ABKAUFART="PR"
                         ABAUF ="{Binding ORDERNUM,ElementName=cAB55}"   
                         EXAUF="{Binding PRART,ElementName=cWD02}"
                         />
                </WrapPanel> 
            </Grid> 
        </Grid> 
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <AB:TWAB55PR Grid.Row="0"  Grid.Column="0"  
                                   IsAuto="False"
                                   POSTYP="PR "
                                    MAKE2ORD="False"
                                   Name="cAB55"  
                                  dwWS="{Binding dwWS,ElementName=TV}"
                         />
            <TabControl Grid.Row="0"  Grid.Column="1"  >

                <TabItem Header="织轴计划" Name="ZoneBeam">
                    <Grid Grid.Row="1" Grid.Column="1">
                        <Grid.RowDefinitions>
                            <RowDefinition   Height="Auto" />
                            <RowDefinition   Height="1*" />
                        </Grid.RowDefinitions>
                        <BD:TBD02  Grid.Row="0"  
                               Name="cBD02"
                                   IsCanLoad="{Binding IsSelected,ElementName=ZoneBeam}"
                               EXAUF="{Binding KEY,ElementName=cAB55}"/>
                        <BB:TBZ02 Grid.Row="1"
                          EXAUF="{Binding ElementName=cBD02, Path=WARP}" />
                    </Grid>
                </TabItem>
                <TabItem Header="纬纱计划" Name="ZoneWeft"> 
                    <Grid Grid.Row="1" Grid.Column="1">
                        <Grid.RowDefinitions>
                            <RowDefinition   Height="Auto" />
                            <RowDefinition   Height="1*" />
                        </Grid.RowDefinitions>

                        <GD:TGD733  Grid.Row="0"
                                    IsCanLoad="{Binding IsSelected,ElementName=ZoneWeft}"
                                    Name="cGD"
                                    EXAUF="{Binding KEY,ElementName=cAB55}"
                                    />
                        <Grid Grid.Row="1">
                            <Grid.RowDefinitions>
                                <RowDefinition   Height="Auto" />
                                <RowDefinition   Height="1*" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="1*"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="1*"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <GB:TGLLG   Grid.Row="0" Grid.Column="0" Grid.RowSpan="2"
                                    VerticalAlignment="Top"
                                    dwReq="{Binding dwGD,ElementName=cYGA}"
                                   dwGD="{Binding dwGD,ElementName=cGD}"
                                    />
                            <GD:YARNA     Grid.Row="0" Grid.Column="1"  Grid.RowSpan="2"
                                  FTAUTOSUM="True"
                                  SKEY1="GAART"
                                  KEY1="QFREE"
                                  LMMU="N"
                         Name="cYGA"  VerticalAlignment="Top"
                        dwReq="{Binding dwGD,ElementName=cYGD}"            
                    />
                            <Grid  Grid.Row="0" Grid.Column="2"  Grid.RowSpan="2">
                                <Grid.RowDefinitions>
                                    <RowDefinition   Height="1*" />
                                    <RowDefinition   Height="1*" />
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="1*"></ColumnDefinition>
                                    <ColumnDefinition Width="1*"></ColumnDefinition>
                                </Grid.ColumnDefinitions>

                                <GD:Y3TGAAUF Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
                                  Name="cYGD"
                                  EXTMU="SM"
                                  dwReq="{Binding dwGD,ElementName=cGD}"
                                  POSTYP="{Binding POSTYP,ElementName=cGD}"  />
                                <GD:XZUTEI   Grid.Row="1" Grid.Column="0"  
                                 Name="cZU" VerticalAlignment="Top"
                                dwReq="{Binding dwGD,ElementName=cYGA}"            
                            />
                                <GD:XGAAUF   Grid.Row="1" Grid.Column="1" 
                             Name="cXGD"  VerticalAlignment="Top"
                            dwReq="{Binding dwGD,ElementName=cYGA}"            
                        />
                            </Grid>
                        </Grid>
                    </Grid>
                </TabItem>
                <TabItem Header="计划布卷"  Name="ZoneDIWB" >
                    <Grid  Grid.Row="1"  Grid.Column="1"    >
                        <Grid.RowDefinitions>
                            <RowDefinition   Height="Auto" />
                            <RowDefinition   Height="1*" />
                        </Grid.RowDefinitions> 
                        <WBB:TWBDI2PR  Grid.Row="1"
                                PRTYPE="UBTWVLB"
                                    IsCanLoad="{Binding IsSelected,ElementName=ZoneDIWB}"
                                      dwAB="{Binding dwAB,ElementName=cAB55}"
                                     EXAUF="{Binding ABAUF,ElementName=cDI}"/>
                    </Grid>
                </TabItem>
                <TabItem Header="布卷清单"  Name="ZonePRWB" > 
                    <Grid Grid.Row="1" Grid.Column="1">
                        <Grid.RowDefinitions>
                            <RowDefinition   Height="Auto" />
                            <RowDefinition   Height="1*" />
                        </Grid.RowDefinitions>
                        <WBB:TPRWB25  Grid.Row="1"
                            IsCanLoad="{Binding IsSelected,ElementName=ZonePRWB}"
                            PRTYPE="UBTWVLB"
                            EXAUF="{Binding ABAUF,ElementName=cAB55}"/>
                    </Grid>
                </TabItem>
                <TabItem Header="步骤" Name="ZoneABF" >
                    <Grid >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="400"></ColumnDefinition>
                            <ColumnDefinition Width="1*"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <AF:TAB10 Grid.Column="0" Name="cABF"
                                  IsCanLoad="{Binding IsSelected,ElementName=ZoneABF}"
                                 EXAUF="{Binding KEY,ElementName=cAB55}"/>
                        <AE:TRABE  Grid.Column="1" 
                                 EXAUF="{Binding KEY,ElementName=cABF}"/>
                    </Grid>
                </TabItem>
                <TabItem Header="面料档案">  
                    <WS:TWLWS03
                        ORDERNUM="{Binding PRART,ElementName=cAB55}"
                        dwWS="{Binding dwWS,ElementName=cAB55}"
                        />
                </TabItem>
            </TabControl>
        </Grid>
    </Grid>
</local:DocumentBase>
    
